package com.chief.dubbo.service;

import com.chief.dubbo.DubboTestService;
import com.chief.openfeign.OpenFeignTestService;
import com.chief.openfeign.gateway.OpenFeignGatewayTestService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

@DubboService
public class DubboTestServiceImpl implements DubboTestService {

    @Autowired
    private OpenFeignTestService openFeignTestService;
    @Autowired
    private OpenFeignGatewayTestService openFeignGatewayTestService;

    @Override
    public String test(String name) {
//        String test = this.openFeignTestService.openFeignTest("9999").toString();
//        String gateway = this.openFeignGatewayTestService.test().toString();
        String test = "test";
        String gateway = "gateway";
        return "DubboTestServiceImpl test method test is " + test + ",gateway is " + gateway;
    }
}
